@echo off
set LOG_FILE=D:\wwwroot\yingyang\runtime\dish_processing_%date:~0,4%%date:~5,2%%date:~8,2%_%time:~0,2%%time:~3,2%%time:~6,2%.log
echo 开始执行菜品信息处理任务... > %LOG_FILE%
echo 执行时间: %date% %time% >> %LOG_FILE%
echo. >> %LOG_FILE%

cd /d D:\wwwroot\yingyang
echo 当前目录: %cd% >> %LOG_FILE%

echo 执行PHP脚本... >> %LOG_FILE%
php runtime\auto_process_dish_info.php >> %LOG_FILE% 2>&1

echo. >> %LOG_FILE%
echo 任务执行完成。 >> %LOG_FILE%
echo 完成时间: %date% %time% >> %LOG_FILE%

echo 任务已执行完成，日志已保存到: %LOG_FILE%
type %LOG_FILE%
pause